home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / scsidisktest.z / scsidisktest
Encoding:
Text File  |  2002-10-03  |  17.8 KB  |  331 lines

  1.  
  2.  
  3.  
  4. ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm))))                                              ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      scsidisktest - finds and reallocates bad blocks on SCSI and Fibre Channel
  10.      Disks
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt [[[[----VVVV ((((vvvveeeerrrrbbbboooosssseeee))))]]]] [[[[----xxxx ((((EEEExxxxppppeeeerrrrtttt MMMMooooddddeeee))))]]]] [[[[----RRRR ((((RRRReeeeaaaadddd TTTTeeeesssstttt))))]]]] [[[[----WWWW
  14.      ((((WWWWrrrriiiitttteeee TTTTeeeesssstttt))))]]]] [[[[----CCCC ((((WWWWrrrriiiitttteeee----RRRReeeeaaaadddd----CCCCoooommmmppppaaaarrrreeee TTTTeeeesssstttt))))]]]] [[[[----nnnn <<<<NNNNoooo.... ooooffff TTTTiiiimmmmeeeessss ttttoooo rrrruuuunnnn tttthhhheeee
  15.      TTTTeeeesssstttt>>>>]]]] [[[[----ssss <<<<SSSSttttaaaarrrrttttiiiinnnngggg BBBBlllloooocccckkkk>>>>]]]] [[[[----tttt <<<<TTTToooottttaaaallll NNNNoooo.... ooooffff BBBBlllloooocccckkkkssss ttttoooo tttteeeesssstttt>>>>]]]] [[[[----zzzz <<<<MMMMaaaaxxxx
  16.      NNNNoooo.... ooooffff BBBBlllloooocccckkkkssss ttttrrrraaaannnnssssffffeeeerrrrrrrreeeedddd ppppeeeerrrr ccccoooommmmmmmmaaaannnndddd>>>>]]]] [[[[----SSSS ((((SSSSeeeeqqqquuuueeeennnnttttiiiiaaaallll PPPPaaaatttttttteeeerrrrnnnn))))]]]] [[[[----BBBB
  17.      ((((BBBBuuuutttttttteeeerrrrffffllllyyyy PPPPaaaatttttttteeeerrrrnnnn))))]]]] [[[[----PPPP ((((DDDDiiiissssppppllllaaaayyyy PPPP LLLLiiiisssstttt))))]]]] [[[[----GGGG ((((DDDDiiiissssppppllllaaaayyyy GGGG LLLLiiiisssstttt))))]]]] [[[[----LLLL
  18.      ((((SSSShhhhoooowwww DDDDeeeeffffeeeeccccttttiiiivvvveeee BBBBlllloooocccckkkk CCCCoooouuuunnnntttt))))]]]] -_d _D_E_V_I_C_E
  19.  
  20.  
  21. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.      scsidisktest is an interactive utility to analyze the disk surface of
  23.      SCSI devices accessed using the _S_G_I _S_C_S_I subsystem. It finds and
  24.      reallocates bad blocks on the disk.  It can also be used to display the
  25.      Disk Defect Lists (P List and G list).
  26.  
  27.  
  28.    OOOOPPPPTTTTIIIIOOOONNNNSSSS
  29.      ----VVVV VVVVeeeerrrrbbbboooosssseeee MMMMooooddddeeee
  30.           In this mode scsidisktest displays the block numbers of the blocks
  31.           being tested while the test is in progress.
  32.  
  33.      ----xxxx EEEExxxxppppeeeerrrrtttt MMMMooooddddeeee
  34.           This mode allows the testing process without being interrupted for
  35.           confirmation.
  36.  
  37.      ----RRRR RRRReeeeaaaadddd TTTTeeeesssstttt
  38.           During this test,the SSSSCCCCSSSSIIII RRRReeeeaaaadddd((((11110000)))) Command is used to read data
  39.           blocks from the disk (without any retries).
  40.  
  41.      ----WWWW WWWWrrrriiiitttteeee TTTTeeeesssstttt
  42.           During this test, a random byte pattern is written to the disk using
  43.           the SSSSCCCCSSSSIIII WWWWrrrriiiitttteeee((((11110000)))) Command (without any retries).
  44.  
  45.      ----CCCC WWWWrrrriiiitttteeee----RRRReeeeaaaadddd----CCCCoooommmmppppaaaarrrreeee TTTTeeeesssstttt
  46.           During this test, a random byte pattern is written to the disk using
  47.           the SSSSCCCCSSSSIIII WWWWrrrriiiitttteeee((((11110000)))) Command (without any retries) and that pattern is
  48.           read from the disk using the SSSSCCCCSSSSIIII RRRReeeeaaaadddd((((11110000)))) Command (without any
  49.           retries).  The pattern read, is checked against the pattern written
  50.           earlier to check for any discrepancies.
  51.  
  52.      ----nnnn <<<<NNNNoooo.... ooooffff TTTTiiiimmmmeeeessss ttttoooo rrrruuuunnnn tttthhhheeee tttteeeesssstttt>>>>
  53.           The test can be run for multiple times depending on the value given
  54.           here.
  55.  
  56.      ----ssss <<<<SSSSttttaaaarrrrttttiiiinnnngggg BBBBlllloooocccckkkk>>>>
  57.           This specifies the starting block of the chunk of blocks being
  58.           tested.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm))))                                              ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm))))
  71.  
  72.  
  73.  
  74.      ----tttt <<<<TTTToooottttaaaallll NNNNoooo.... ooooffff BBBBlllloooocccckkkkssss ttttoooo TTTTeeeesssstttt>>>>
  75.           This specifies the total no. of blocks being tested.
  76.  
  77.      If the ----ssss <<<<SSSSttttaaaarrrrttttiiiinnnngggg BBBBlllloooocccckkkk>>>> and ----tttt <<<<TTTToooottttaaaallll NNNNoooo.... ooooffff BBBBlllloooocccckkkkssss>>>> choices are NOT
  78.      specified, then the test is carried out on the entire disk under
  79.      consideration (Recommended).
  80.  
  81.      ----zzzz <<<<MMMMaaaaxxxx NNNNoooo.... ooooffff BBBBlllloooocccckkkkssss ttttrrrraaaannnnssssffffeeeerrrrrrrreeeedddd ppppeeeerrrr ccccoooommmmmmmmaaaannnndddd>>>>
  82.           This specifies the maximum data transfer size during the SSSSCCCCSSSSIIII
  83.           RRRReeeeaaaadddd((((11110000)))),,,, WWWWrrrriiiitttteeee((((11110000)))) commands. If not specified, a maximum of _2_5_6
  84.           blocks are transferred in every Read(10), Write(10) command during
  85.           the test.
  86.  
  87.      ----SSSS SSSSeeeeqqqquuuueeeennnnttttiiiiaaaallll PPPPaaaatttttttteeeerrrrnnnn
  88.           In this pattern the disk sectors are scanned sequentially.
  89.  
  90.      ----BBBB BBBBuuuutttttttteeeerrrrffffllllyyyy PPPPaaaatttttttteeeerrrrnnnn
  91.           In this pattern the user scans the disk surface alternately from the
  92.           extremes of the block length being scanned.
  93.  
  94.      ----PPPP DDDDiiiissssppppllllaaaayyyy PPPP LLLLiiiisssstttt
  95.           Display the defective blocks in the P List in the PPPPhhhhyyyyssssiiiiccccaaaallll SSSSeeeeccccttttoooorrrr
  96.           Format.
  97.  
  98.      ----GGGG DDDDiiiissssppppllllaaaayyyy GGGG LLLLiiiisssstttt
  99.           Display the defective blocks in the G List in the PPPPhhhhyyyyssssiiiiccccaaaallll SSSSeeeeccccttttoooorrrr
  100.           Format.
  101.  
  102.      ----LLLL SSSShhhhoooowwww DDDDeeeeffffeeeeccccttttiiiivvvveeee BBBBlllloooocccckkkk CCCCoooouuuunnnntttt
  103.           Display the total number of defective blocks on the disk. This
  104.           number includes the blocks in all Defect Lists.
  105.  
  106.  
  107.    IIIInnnntttteeeerrrraaaaccccttttiiiivvvveeee MMMMooooddddeeee MMMMeeeennnnuuuussss
  108.      SSSSccccaaaannnn MMMMooooddddeeeessss ((((RRRReeeeaaaadddd |||| WWWWrrrriiiitttteeee |||| WWWWrrrriiiitttteeee----RRRReeeeaaaadddd----CCCCoooommmmppppaaaarrrreeee))))
  109.           In the RRRReeeeaaaadddd Mode the user performs a SCSI Read(10) (with no retries)
  110.           on the disk.  In the WWWWrrrriiiitttteeee Mode the user writes a random byte
  111.           pattern on the disk using the SCSI Write(10) command (with no
  112.           retries).  In the WWWWrrrriiiitttteeee----RRRReeeeaaaadddd----CCCCoooommmmppppaaaarrrreeee Mode the user writes a random
  113.           byte pattern on the disk using the SCSI Write(10) command (with no
  114.           retries), performs a SCSI Read(10) (with no retries) and then
  115.           compares the bytes read, with the bytes written for any
  116.           discrepancies.
  117.  
  118.      The Write-Read-Compare Mode performs the most exhaustive scan of the disk
  119.      surface.
  120.  
  121.  
  122.      SSSSccccaaaannnn PPPPaaaatttttttteeeerrrrnnnn ((((BBBBuuuutttttttteeeerrrrffffllllyyyy |||| RRRRaaaannnnddddoooommmm |||| SSSSeeeeqqqquuuueeeennnnttttiiiiaaaallll))))
  123.           In the BBBBuuuutttttttteeeerrrrffffllllyyyy Pattern the user scans the disk surface alternately
  124.           from the extremes of the block length being scanned.  In the RRRRaaaannnnddddoooommmm
  125.           Pattern the user scans any random block in the block length under
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm))))                                              ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm))))
  137.  
  138.  
  139.  
  140.           consideration. In the SSSSeeeeqqqquuuueeeennnnttttiiiiaaaallll Pattern the user scans the disk
  141.           surface sequentially.
  142.  
  143.      The disk surface is normally scanned in chunks of 256 blocks.  If an
  144.      error is detected, the chunk causing the error is scanned again, 1 block
  145.      at a time to find the block causing the error. That block is then
  146.      reallocated.  If there is no space on the disk to reallocate that block,
  147.      a corresponding error message is displayed.
  148.  
  149.  
  150.      HHHHaaaarrrrddddwwwwaaaarrrreeee DDDDeeeeffffeeeecccctttt LLLLiiiisssstttt ((((PPPP LLLLiiiisssstttt |||| GGGG LLLLiiiisssstttt))))
  151.           PPPP ((((PPPPrrrriiiimmmmaaaarrrryyyy DDDDeeeeffffeeeecccctttt TTTTyyyyppppeeee)))) LLLLiiiisssstttt :::: P type flawed sectors are identified
  152.           at the time of shipment in a list of defects (permanent flaws)
  153.           supplied by the manufacturer and stored on the disc in an area that
  154.           is not directly accessible by the user. (This list may be referred
  155.           to as an ETF List). This defect list is not modified or changed by
  156.           the disc drive (or initiator) after shipment.
  157.  
  158.           GGGG ((((GGGGrrrroooowwwwtttthhhh DDDDeeeeffffeeeecccctttt TTTTyyyyppppeeee)))) LLLLiiiisssstttt ::::  G type flawed sectors contain medium
  159.           flaws and have been reallocated as a result of receiving a Reassign
  160.           Blocks command, or certification defects (C type) reallocated during
  161.           a previous Format Unit command, or Data Defects (D type) reallocated
  162.           during a previous Format Unit command or defects that have been
  163.           automatically reallocated by the drive. This (G) list is recorded on
  164.           the disc drive media and may be referenced for the current (and
  165.           subsequent) Format Unit commands. This (G) list does not include the
  166.           Primary (P) list of defects.
  167.  
  168.  
  169.      LLLLiiiisssstttt DDDDiiiissssppppllllaaaayyyy FFFFoooorrrrmmmmaaaatttt ((((BBBByyyytttteeeessss FFFFrrrroooommmm IIIInnnnddddeeeexxxx |||| PPPPhhhhyyyyssssiiiiccccaaaallll SSSSeeeeccccttttoooorrrr)))) ::::
  170.           Each defect descriptor for the BBBByyyytttteeeessss ffffrrrroooommmm IIIInnnnddddeeeexxxx format specifies the
  171.           beginning of an eight bit (1 byte) defect location on the medium.
  172.           Each defect descriptor is comprised of the cylinder number of the
  173.           defect, the head number of the defect and the number of bytes from
  174.           Index to the defect location.  Each defect descriptor for the
  175.           PPPPhhhhyyyyssssiiiiccccaaaallll SSSSeeeeccccttttoooorrrr format specifies a sector size defect location
  176.           comprised of the cylinder number of the defect, the head number of
  177.           the defect and the defect sector number.
  178.  
  179.  
  180.      AAAAdddddddd BBBBaaaadddd BBBBlllloooocccckkkk ttttoooo tttthhhheeee HHHHaaaarrrrddddwwwwaaaarrrreeee DDDDeeeeffffeeeecccctttt LLLLiiiisssstttt::::
  181.           This options allow the user to add a defective block to the GGGG LLLLiiiisssstttt
  182.           using the SCSI RRRReeeeaaaassssssssiiiiggggnnnn BBBBlllloooocccckkkkssss Command.More information about the
  183.           Reassign Blocks command can be found in the SSSSCCCCSSSSIIII----3333 BBBBlllloooocccckkkk CCCCoooommmmmmmmaaaannnnddddssss
  184.           ((((SSSSBBBBCCCC)))) document.
  185.  
  186.  
  187. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  188.      Under Irix, the device name must correspond to the 'sc' device.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm))))                                              ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm))))
  203.  
  204.  
  205.  
  206.      ++++oooo scsidisktest -d /dev/scsi/sc9d70l0
  207.  
  208.      In the interactive mode, scsidisktest has to be invoked _w_i_t_h_o_u_t the
  209.      -RWCSBnstx options (as shown above).
  210.  
  211.      ++++oooo scsidisktest -V -d /dev/scsi/sc9d70l0
  212.  
  213.      When invoked with the (-V) Verbose option, scsidisktest prints out the
  214.      block numbers being tested while carrying out the test (in the
  215.      interactive mode).
  216.  
  217.      ++++oooo scsidisktest -C -B -n 2 -x -d /dev/scsi/sc9d70l0
  218.  
  219.      In the non-interactive mode, scsidisktest is invoked as shown above.
  220.      This causes scsidisktest to perform a (-C) Write-Read-Compare test on the
  221.      _e_n_t_i_r_e disk sc9d70l0 by scanning it in a (-B) Butterfly pattern, (-n) 2
  222.      times.
  223.  
  224.      ++++oooo scsidisktest -C -B -n 2 -s 100 -t 100000 -x -d /dev/scsi/sc9d70l0
  225.  
  226.      This invocation in the non-interactive mode, causes scsidisktest to
  227.      perform a (-C) Write-Read-Compare test on (-t)100000 sectors of the disk
  228.      sc9d70l0 starting from (-s) sector 100, by scanning it in a (-B)
  229.      Butterfly pattern, (-n) 2 times.
  230.  
  231.  
  232.      ++++oooo scsidisktest -V -C -B -n 2 -s 100 -t 100000 -x -d /dev/scsi/sc9d70l0
  233.  
  234.      This invocation in the non-interactive mode, causes scsidisktest to
  235.      perform a (-C) Write-Read-Compare test on (-t)100000 sectors of the disk
  236.      sc9d70l0 starting from (-s) sector 100, by scanning it in a (-B)
  237.      Butterfly pattern, (-n) 2 times.  Due to the (-V) Verbose option,
  238.      scsidisktest also prints out block numbers while the blocks are being
  239.      tested.
  240.  
  241.  
  242.      ++++oooo scsidisktest -P -d /dev/scsi/sc9d70l0
  243.  
  244.      This invocation causes scsidisktest to display the defective blocks in
  245.      the P list for disk sc9d70l0 in the Physical Sector Format.
  246.  
  247.  
  248.      ++++oooo scsidisktest -L -d /dev/scsi/sc9d70l0
  249.  
  250.      This invocation causes scsidisktest to display the total number of
  251.      defective blocks on the disk.
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm))))                                              ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm))))
  269.  
  270.  
  271.  
  272. FILES
  273.      /dev/scsi/sc*d*l* - the generic 'sc' device under Irix.
  274.  
  275. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  276.      scsicontrol(1M), scsiha(1M), scsimodepage(1M), scsidiskformat(1M).
  277.  
  278. NNNNOOOOTTTTEEEE
  279.      This command is normally usable only by the superuser, because the
  280.      standard permissions of the devices restrict access to other users.
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.